export const useUserStore = defineStore(
  'user',
  () => {
    const userInfo = ref<any>({ userName: 'admin' })
    const isLogin = ref(true)

    const loginOut = () => {
      isLogin.value = false
    }

    return { userInfo, isLogin, loginOut }
  }
  // { persist: { key: 'USER_STORE', storage: sessionStorage } }
)
